package daa.levelup.UnitFactory;

public class Warrior extends Unit {
    private int strength;


    public Warrior(int health, int armor, String name, int attackCount, String weapon) {
        super(health, armor, name, attackCount,weapon);
        this.strength = getAttackCount();


    }

    @Override
    public void level() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public String toString() {
        return "Warrior{" +
                "strength=" + strength +
                '}';
    }
}
